#include<func.h>
int main()
{
    FILE *fp=popen("cat /etc/profile","r");
    char buf[1024]={0};
    fread(buf,sizeof(char),sizeof(buf),fp);
    printf("%s",buf);
    pclose(fp);
    return 0;
}